package com.settlement.system.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.settlement.system.common.annotation.StorePermission;
import com.settlement.system.model.entity.SysBillSummary;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.settlement.system.model.query.BillPageQuery;
import com.settlement.system.model.query.BillSummaryQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 标准账单汇总 Mapper 接口
 * </p>
 *
 * @author huangrensen
 * @since 2023-08-05
 */
@Mapper
public interface SysBillSummaryMapper extends BaseMapper<SysBillSummary> {

    /**
     * 插入数据
     *
     * @param sysBillSummary 实体
     * @return
     */
    int insertData(SysBillSummary sysBillSummary);

    /**
     * 更新数据
     *
     * @param sysBillSummary 实体
     * @return
     */
    int update(SysBillSummary sysBillSummary);

    @StorePermission
    Page<SysBillSummary> getPage(Page<SysBillSummary> page, BillSummaryQuery queryParams);

    List<SysBillSummary> getList(BillSummaryQuery queryParams);

    /**
     * 创建表
     *
     * @param tableName
     * @return
     */
    int createTable(@Param("tableName") String tableName);

    void deleteAll(@Param("tableName") String tableName);

    void deleteTable(@Param("tableName") String tableName);
}
